home *** CD-ROM | disk | FTP | other *** search
/ Merciful 1 / Merciful - Disc 1.iso / software / a / asm_one / asm-onev1.25c.dms / in.adf / Release3.0 / Include3.0.lha / Include3.0 / exec / devices.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-09-24  |  921 b   |  44 lines

  1. #ifndef    EXEC_DEVICES_H
  2. #define    EXEC_DEVICES_H
  3. /*
  4. **    $VER: devices.h 39.0 (15.10.91)
  5. **    Includes Release 39.108
  6. **
  7. **    Include file for use by Exec device drivers
  8. **
  9. **    (C) Copyright 1985-1992 Commodore-Amiga, Inc.
  10. **        All Rights Reserved
  11. */
  12.  
  13. #ifndef EXEC_LIBRARIES_H
  14. #include "exec/libraries.h"
  15. #endif /* EXEC_LIBRARIES_H */
  16.  
  17. #ifndef EXEC_PORTS_H
  18. #include "exec/ports.h"
  19. #endif /* EXEC_PORTS_H */
  20.  
  21.  
  22. /****** Device ******************************************************/
  23.  
  24. struct Device {
  25.     struct  Library dd_Library;
  26. };
  27.  
  28.  
  29. /****** Unit ********************************************************/
  30.  
  31. struct Unit {
  32.     struct  MsgPort unit_MsgPort;    /* queue for unprocessed messages */
  33.                     /* instance of msgport is recommended */
  34.     UBYTE   unit_flags;
  35.     UBYTE   unit_pad;
  36.     UWORD   unit_OpenCnt;        /* number of active opens */
  37. };
  38.  
  39.  
  40. #define UNITF_ACTIVE    (1<<0)
  41. #define UNITF_INTASK    (1<<1)
  42.  
  43. #endif    /* EXEC_DEVICES_H */
  44.